@extends('layouts.master')

@section('title')
    视频管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link href="/resource/css/bootstrap-datetimepicker.css" rel="stylesheet">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/date.js"></script>
    <script src="/resource/js/fileinput.min.js"></script>
    <script src="/resource/js/fileinput_locale_zh.js"></script>
@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.service_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 视频管理
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_video">列表</a></li>
                <li class="btn btn-default"><a href="/add_video">新增</a></li>
              </ul>
            </div>
            <div class="contentMember">
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>名称</th>
                    <th>链接</th>
                    <th>时长</th>
                    <th>操作</th>
                  </tr>
                </thead>
                  @foreach($videos as $k => $video)
                  <tr>
                    <td>{{ $video->video_name }}</td>
                    <td>{{ $video->video_url }}</td>
                    <td>{{ $video->take_time }}</td>
                    <td><a href="/edit_video?video_id={{ $video->video_id }}">编辑</a> <a href="/delete_video?video_id={{ $video->video_id }}">删除</a></td>
                  </tr>
                  @endforeach
                <tbody>
                </tbody>
              </table>
            </div>
            {{ $videos->links() }}
        </div>
    </div>
</div>
@stop